package com.hrsoft.modules.bid.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hrsoft.common.utils.PageUtils;
import com.hrsoft.common.utils.Query;

import com.hrsoft.modules.bid.dao.ProjectSegmentDao;
import com.hrsoft.modules.bid.entity.ProjectSegmentEntity;
import com.hrsoft.modules.bid.service.ProjectSegmentService;


@Service("projectSegmentService")
public class ProjectSegmentServiceImpl extends ServiceImpl<ProjectSegmentDao, ProjectSegmentEntity> implements ProjectSegmentService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ProjectSegmentEntity> page = this.page(
                new Query<ProjectSegmentEntity>().getPage(params),
                new QueryWrapper<ProjectSegmentEntity>()
        );

        return new PageUtils(page);
    }

}